Property
The Property reference form specifies a property of an application object, a script object, a record, or a date.SYNTAX
propertyLabelwherepropertyLabel is the label for the property.
EXAMPLES
The following example is a reference to the Name property of the front window. It lists the label for the property (name
) and its container
(front window
).
name of front windowThe following example is a reference to the UnitPrice property of a record. (A record is an AppleScript value that consists of a collection of properties. For more information about records, see Chapter 3, "Values.") The label of the property is UnitPrice and the container is the record.
UnitPrice of {Product:"Super Snack", UnitPrice:0.85, Quantity:10}NOTES
Property labels are listed in object class definitions in application dictionaries. Because a property's label is unique among the properties of an object, the label is all you need to distinguish a property from all the other properties of the object. Unlike other reference forms, there is no need to specify the class of
the object.